#include <memory>

#include <logger.h>

class A {
public:
    virtual ~A();
    virtual int Func()
    {
        return val;
    }

private:
    int val = 0;
};

struct B {
    A *pa;
};

int main()
{
    VALUE_LOGGER(0x00007ffff7bd5724); // 污染栈区

    struct B b;
    VALUE_LOGGER(b.pa);
    b.pa->Func();
    return 0;
}
